<!doctype html>


<html>
<head>
  <link rel="shortcut icon" href="static/images/favicon.ico" type="image/x-icon">
  <title>uncheckedconversions (Closure Library API Documentation - JavaScript)</title>
  <link rel="stylesheet" href="static/css/base.css">
  <link rel="stylesheet" href="static/css/doc.css">
  <link rel="stylesheet" href="static/css/sidetree.css">
  <link rel="stylesheet" href="static/css/prettify.css">

  <script>
     var _staticFilePath = "static/";
     var _typeTreeName = "goog";
     var _fileTreeName = "Source";
  </script>

  <script src="static/js/doc.js">
  </script>


  <meta charset="utf8">
</head>

<body onload="grokdoc.onLoad();">

<div id="header">
  <div class="g-section g-tpl-50-50 g-split">
    <div class="g-unit g-first">
      <a id="logo" href="index.html">Closure Library API Documentation</a>
    </div>

    <div class="g-unit">
      <div class="g-c">
        <strong>Go to class or file:</strong>
        <input type="text" id="ac">
      </div>
    </div>
  </div>
</div>





<div class="colmask rightmenu">
<div class="colleft">
    <div class="col1">
      <!-- Column 1 start -->

<div id="title">
       <span class="fn">html.uncheckedconversions</span>
</div>

<hr/>


  <h2>Classes</h2>
   
<br/>

  <div class="legend">
        <span class="key publickey"></span><span>Public</span>
        <span class="key protectedkey"></span><span>Protected</span>
        <span class="key privatekey"></span><span>Private</span>
  </div>









<div class="section">
  <table class="horiz-rule">


  </table>
</div>




  <h2>Global Functions</h2>





<div class="section">
  <table class="horiz-rule">


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.html.uncheckedconversions.safeHtmlFromStringKnownToSatisfyTypeContract"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.html.uncheckedconversions.</span><span class="entryName">safeHtmlFromStringKnownToSatisfyTypeContract<span class="args">(<span class="arg">justification</span>,&nbsp;<span class="arg">html</span>,&nbsp;<span class="arg">opt_dir</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_html_SafeHtml.html">goog.html.SafeHtml</a></span>
      </div>


     <div class="entryOverview">
       Performs an "unchecked conversion" to SafeHtml from a plain string that is
known to satisfy the SafeHtml type contract.

IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of <code> html</code> satisfies the SafeHtml type contract in all
possible program states.

TODO(user): Link to guidelines on appropriate uses.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">justification</span>
        : <span>!</span><span class="type"><a href="class_goog_string_Const.html">goog.string.Const</a></span>
        <div class="entryOverview">A constant string explaining why
    this use of this method is safe. May include a security review ticket
    number.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">html</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">A string that is claimed to adhere to the SafeHtml
    contract.</div>
     </td>
   </tr>
     
   <tr class="even">
     <td>
        <span class="entryName">opt_dir</span>
        : <span>?</span><span class="type">goog.i18n.bidi.Dir=</span>
        <div class="entryOverview">The optional directionality of the
    SafeHtml to be constructed. A null or undefined value signifies an
    unknown directionality.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_html_SafeHtml.html">goog.html.SafeHtml</a></span>&nbsp;
            The value of html, wrapped in a SafeHtml
    object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_html_uncheckedconversions.js.source.html#line67">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.html.uncheckedconversions.safeStyleFromStringKnownToSatisfyTypeContract"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.html.uncheckedconversions.</span><span class="entryName">safeStyleFromStringKnownToSatisfyTypeContract<span class="args">(<span class="arg">justification</span>,&nbsp;<span class="arg">style</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_html_SafeStyle.html">goog.html.SafeStyle</a></span>
      </div>


     <div class="entryOverview">
       Performs an "unchecked conversion" to SafeStyle from a plain string that is
known to satisfy the SafeStyle type contract.

IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of <code> style</code> satisfies the SafeUrl type contract in all
possible program states.

TODO(user): Link to guidelines on appropriate uses.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">justification</span>
        : <span>!</span><span class="type"><a href="class_goog_string_Const.html">goog.string.Const</a></span>
        <div class="entryOverview">A constant string explaining why
    this use of this method is safe. May include a security review ticket
    number.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">style</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string to wrap as a SafeStyle.
    contract.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_html_SafeStyle.html">goog.html.SafeStyle</a></span>&nbsp;
            The value of <code> style</code>, wrapped in a
    SafeStyle object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_html_uncheckedconversions.js.source.html#line103">code &raquo;</a>
  </td>
     </tr>


     <tr class="even entry public">
       <td class="access"></td>






  <td>
    <a name="goog.html.uncheckedconversions.safeUrlFromStringKnownToSatisfyTypeContract"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.html.uncheckedconversions.</span><span class="entryName">safeUrlFromStringKnownToSatisfyTypeContract<span class="args">(<span class="arg">justification</span>,&nbsp;<span class="arg">url</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_html_SafeUrl.html">goog.html.SafeUrl</a></span>
      </div>


     <div class="entryOverview">
       Performs an "unchecked conversion" to SafeUrl from a plain string that is
known to satisfy the SafeUrl type contract.

IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of <code> url</code> satisfies the SafeUrl type contract in all
possible program states.

TODO(user): Link to guidelines on appropriate uses.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">justification</span>
        : <span>!</span><span class="type"><a href="class_goog_string_Const.html">goog.string.Const</a></span>
        <div class="entryOverview">A constant string explaining why
    this use of this method is safe. May include a security review ticket
    number.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">url</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string to wrap as a SafeUrl.
    contract.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_html_SafeUrl.html">goog.html.SafeUrl</a></span>&nbsp;
            The value of <code> url</code>, wrapped in a SafeUrl
    object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_html_uncheckedconversions.js.source.html#line139">code &raquo;</a>
  </td>
     </tr>


     <tr class="odd entry public">
       <td class="access"></td>






  <td>
    <a name="goog.html.uncheckedconversions.trustedResourceUrlFromStringKnownToSatisfyTypeContract"></a>


     <div class="arg">
       <img align="left" src="static/images/blank.gif">

        <span class="entryNamespace">goog.html.uncheckedconversions.</span><span class="entryName">trustedResourceUrlFromStringKnownToSatisfyTypeContract<span class="args">(<span class="arg">justification</span>,&nbsp;<span class="arg">url</span>)</span>
        </span>
        &#8658; <span>!</span><span class="type"><a href="class_goog_html_TrustedResourceUrl.html">goog.html.TrustedResourceUrl</a></span>
      </div>


     <div class="entryOverview">
       Performs an "unchecked conversion" to TrustedResourceUrl from a plain string
that is known to satisfy the TrustedResourceUrl type contract.

IMPORTANT: Uses of this method must be carefully security-reviewed to ensure
that the value of <code> url</code> satisfies the TrustedResourceUrl type contract
in all possible program states.

TODO(user): Link to guidelines on appropriate uses.


     </div>


    <! -- Method details -->
    <div class="entryDetails">

      <div class="detailsSection">
        <b>Arguments: </b>






<table class="horiz-rule">
     
   <tr class="even">
     <td>
        <span class="entryName">justification</span>
        : <span>!</span><span class="type"><a href="class_goog_string_Const.html">goog.string.Const</a></span>
        <div class="entryOverview">A constant string explaining why
    this use of this method is safe. May include a security review ticket
    number.</div>
     </td>
   </tr>
     
   <tr class="odd">
     <td>
        <span class="entryName">url</span>
        : <span class="type"><a href="https://developer.mozilla.org/en/Core_JavaScript_1.5_Reference/Global_Objects/String">string</a></span>
        <div class="entryOverview">The string to wrap as a TrustedResourceUrl.
    contract.</div>
     </td>
   </tr>
  </table>
      </div>
   
      <div class="detailsSection">
        <b>Returns:</b>&nbsp;<span>!</span><span class="type"><a href="class_goog_html_TrustedResourceUrl.html">goog.html.TrustedResourceUrl</a></span>&nbsp;
            The value of <code> url</code>, wrapped in
    a TrustedResourceUrl object.
      </div>
  
    </div>
   
  </td>


  <td class="view-code">
     <a href="local_closure_goog_html_uncheckedconversions.js.source.html#line175">code &raquo;</a>
  </td>
     </tr>


  </table>
</div>



      <!-- Column 1 end -->
    </div>

        <div class="col2">
          <!-- Column 2 start -->
          <div class="col2-c">
            <h2 id="ref-head">Package html</h2>
            <div id="localView"></div>
          </div>

          <div class="col2-c">
            <h2 id="ref-head">Package Reference</h2>
            <div id="sideTypeIndex" rootPath="" current="html.uncheckedconversions"></div>
          </div>
          <!-- Column 2 end -->
        </div>
</div>
</div>

</body>
</html>
